package main

import (
	"os"
	"os/signal"

	"smartconn.cc/cubestruct/App/rpchandle"
	"smartconn.cc/cubestruct/App/test"
	"smartconn.cc/tosone/logstash"
)

func main() {
	logstash.Info("Init rpchandle for app-end ...")
	rpchandle.RPCAppEndStart()

	test.WifiStatusScribe()

	signalChanel := make(chan os.Signal, 1)
	signal.Notify(signalChanel, os.Interrupt)
	for {
		//log.Println("Enter kill ...")
		select {
		case <-signalChanel:
			rpchandle.RPCAppEndStop()
			return
		}
	}
}
